package fact.phaseListener;



import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

import org.apache.log4j.Logger;

public class RequestInterceptor implements PhaseListener {

	private static final long serialVersionUID = -6909396254319375303L;
	
	Logger log = Logger.getLogger(RequestInterceptor.class.getName());

	
	
	public PhaseId getPhaseId() {
        return PhaseId.RENDER_RESPONSE;
    }
    
    public void afterPhase(PhaseEvent event) {
        // Do your job here which should run after the render response phase.
    	//System.out.println("AfterPhase=====================>>");
    	//log.info("AfterPhase=====================>>");
    	
    }




	public void beforePhase(PhaseEvent arg0) {
		// TODO Auto-generated method stub
		//System.out.println("BeforePhase=====================>>");
		//log.info("BeforePhase=====================>>");
		
	}

}
